<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="apple-mobile-web-app-title" content="vite-pwa"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta http-equiv ="Content-Security-Policy" content="upgrade-insecure-requests"/>
    <link rel="icon" href="/favicon.ico" />
    <link rel="apple-touch-icon" href="./favicon.ico"/>
    <link rel="manifest" href="/manifest.json"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite App</title>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
    <script>
      if(navigator.serviceWorker != null){
        navigator.serviceWorker.register('sw.js')
        .then(function(registartion){
          console.log('支持sw:',registartion.scope)
        })
      }
    </script>
  </body>
</html>
